import { createRouter, createWebHashHistory } from 'vue-router'
import createRouteGuard from './guards'

import { AppRoutes } from '@/router/routes'

const router = createRouter({
  history: createWebHashHistory(),
  routes: AppRoutes
})

createRouteGuard(router)

export default router
